package cc.ufinity.networkdiagnose.util;

import java.util.Comparator;
import android.net.wifi.ScanResult;

public class ComparatorUser implements Comparator {

	public int compare(Object arg0, Object arg1) {
		ScanResult scan1 = (ScanResult) arg0;
		ScanResult scan2 = (ScanResult) arg1;

			String str1="-"+scan1.level;
			String str2="-"+scan2.level;
			return str1.compareTo(str2);
		
	}

}
